{extend name="layout/layout" /}

{block name="content"}
<blockquote class="layui-elem-quote quoteBox" style="height: 38px;line-height: 38px;">
    <div class="layui-input-inline">
        <h2 >采购订单详情</h2>
    </div>
    <div class="layui-input-inline" style="float: right;">
        <a  href="javascript:history.back(-1)"  class="layui-btn layui-btn-normal "><i class="layui-icon">&#xe65a;</i>返回</a>
    </div>
</blockquote>
<div style="padding: 20px; background-color: #F2F2F2;">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md6">
            <div class="layui-card">
                <div class="layui-card-header">采购订单号: {$info.id}</div>
                <div class="layui-card-header">创建时间: {$info.create_date}</div>
                <div class="layui-card-header">供货商: {$info.name}</div>
            </div>
        </div>
        <div class="layui-col-md6">
            <div class="layui-card">
                <div class="layui-card-header">单据状态: {if $info.status==1}待进货{elseif $info.status==2}已进货{else/}已作废{/if}</div>
                <div class="layui-card-header">创建人: {$info.login_name}</div>
                <div class="layui-card-header">备注: {$info.remarks}</div>
            </div>
        </div>
    </div>
</div>
<table id="dataTable100" lay-filter="dataTable100"></table>
<script type="text/html" id="toolbarDemo">
    <div class="layui-btn-container">
        <button class="layui-btn layui-btn-sm" lay-event="getCheckData">获取选中行数据</button>
        <button class="layui-btn layui-btn-sm" lay-event="getCheckLength">获取选中数目</button>
        <button class="layui-btn layui-btn-sm" lay-event="isAll">验证是否全选</button>
    </div>
</script>
<input type="hidden" class="detail_url" value="{:url('admin/purchase/detail')}?id={$info.id}">
<!--操作-->
<script type="text/html" id="handleBar">
    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
    <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">删除</a>
</script>


{/block}


{block name="pagescript"}
<script>
    var DELETE_URL = "{:url('admin/product/delete')}";
</script>

<script src="__STATIC__/admin/pages/js/purchase.js" type="text/javascript"></script>
{/block}

